package com.itheima.udf;


import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;

public class MyUDF extends UDF {
        public Text evaluate(final Text s){
            //1.获取数据
            String str = s.toString();
            if(str==null){
                return null;
            }
            return new Text(str.toUpperCase());
        }
}
